/**
 * Filter.java
 * Created at 2014-8-26
 * Created by Lee
 * Copyright (C) 2014 SHANGHAI BRODATEXT, All rights reserved.
 */
package com.qfly.main.common.jpa.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * <p>ClassName: Filter</p>
 * <p>Description: 查询过滤器（查询、分页、排序等）</p>
 * 包括当前页面（start）、每页分页大小（limit）、排序方向（order）多个用逗号分割、记录总数（total）、查询条件（queryMap）<br/>
 * queryMap中的key为查询条件，value为Query对象
 * <p>Author: lbdai</p>
 * <p>Date: 2017年12月21日</p>
 * @deprecated use PageFilter
 */
@Deprecated
public class Filter implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3867319088299904979L;
    
	/**分页当前页码*/
	private int start=0;
	
	/**分页每页大小*/
	private int limit=10;
	
	/**排序字段 多个使用","分开*/
	private String order;
	
	/**排序方向*/
	private String sort;
	
	/**记录总页数 （分页方法中赋值，最终返回结果中赋值到pageInfo）*/
	private long total;
	
	/**
     * 查询条件<字段名, 字段值>
     */
    private Map<String, Query> queryMap = new HashMap<String, Query>();

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public Map<String, Query> getQueryMap() {
		return queryMap;
	}

	public void setQueryMap(Map<String, Query> queryMap) {
		this.queryMap = queryMap;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}
	 
	
	
	
	
	
	
	
	
}
